package com.company.cloud.company.modules.app.controller;


import com.company.cloud.common.asserts.ValidatorUtils;
import com.company.cloud.common.auth.annotation.Login;
import com.company.cloud.common.bean.BaseParam;
import com.company.cloud.common.bean.BaseResult;
import com.company.cloud.common.bean.LoginSimpleUserInfo;
import com.company.cloud.common.utils.AuthContextUtils;
import com.company.cloud.company.config.GlobalConfigInfo;
import com.company.cloud.company.modules.mgr.controller.req.BaseProfitSaveParam;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.log4j.Log4j2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Log4j2
@RestController
@RequestMapping("/app/global/config")
@Api(tags="GlobalConfig_全局配置信息")
public class GlobalConfigController {


    @Autowired
    private GlobalConfigInfo globalConfigInfo;


    @GetMapping("/sysInfo")
    @ApiOperation(value="获取系统配置信息", response= GlobalConfigInfo.class)
    public BaseResult sysInfo() {
        return BaseResult.ok(globalConfigInfo);
    }




}
